package com.ybg.employee.business.entity;


import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "员工信息详情(前端交互)", parent = BaseEmployee.class)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("v_employee")
public class FrontEmployee extends BaseEmployee{

    @ApiModelProperty("员工职务名称")
    @TableField(value = "duty_name",
            insertStrategy = FieldStrategy.NOT_EMPTY,
            updateStrategy = FieldStrategy.NOT_EMPTY)
    private String dutyName;

    @ApiModelProperty("员工所属(分)公司")
    @TableField(value = "company_name",
            insertStrategy = FieldStrategy.NOT_EMPTY,
            updateStrategy = FieldStrategy.NOT_EMPTY)
    private String companyName;

    @ApiModelProperty("员工在职状态")
    @TableField(value = "employee_status",
            insertStrategy = FieldStrategy.NOT_EMPTY,
            updateStrategy = FieldStrategy.NOT_EMPTY)
    private String employeeStatus;
}
